home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_01_05 / 1n05028a < prev    next >
Text File  |  1990-07-02  |  1KB  |  29 lines

  1. // DOTBOX.C
  2.  
  3. #include <stdio.h>  // include files here
  4. #include <dos.h> 
  5.  
  6. void main(void);    // function prototype
  7.  
  8. void                // program start
  9. main()
  10. {
  11. union REGS i_regs,o_regs;
  12. int row,column;
  13. for(row=5;row<=16;row++)            // 01 start
  14.   {                                 // 02 row loop
  15.   i_regs.h.ah = 2;                  // 03 mv cur fun
  16.   i_regs.h.bh = 0;                  // 03 on page 0
  17.   i_regs.h.dh = (char)row;          // 05 on row val
  18.   i_regs.h.dl = 5;                  // 06 column 5
  19.   int86(0x10,&i_regs,&o_regs);      // 07 via BIOS    
  20.   for(column=5;column<=60;column++) // 08 start
  21.     {                               // 09 col loop
  22.     i_regs.h.ah = 0x0E;             // 10 print char fun
  23.     i_regs.h.bh = 0;                // 11 on page 0
  24.     i_regs.h.al = '.';              // 12 on row value
  25.     int86(0x10,&i_regs,&o_regs);    // 13 via BIOS    
  26.     }                               // 14 end col loop
  27.   }                                 // 15 end row loop
  28. }
  29.